Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 6, 2026

Plan: Add support for reading samples from byte arrays

  • Understand current code structure and how sources are created
  • Add NewFromSamples() constructor to source package
  • Add NewFromReader() constructor to source package that accepts io.Reader
  • Update bind/api.go to add LoadWAVFromReader() function
  • Add comprehensive tests for new functionality
  • Run tests to validate changes
  • Update documentation if needed
Original prompt

This section details on the original issue you should resolve

<issue_title>Reading samples from byte arrays</issue_title>
<issue_description>Is there a facility in place to read samples from byte arrays instead of from files? And if not, how would one go about doing that in the most elegant manner in order to bypass the file reading and read from byte arrays instead?</issue_description>

Comments on the Issue (you are @copilot in this section)

@charneykaye Almost, but it seems we would need to create an alternate way of constructing a **Source**

https://github.com/go-mix/mix/blob/master/lib/source/source.go#L19-L27</comment_new>


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 6, 2026 09:47
Co-authored-by: charneykaye <8584836+charneykaye@users.noreply.github.com>
Co-authored-by: charneykaye <8584836+charneykaye@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reading samples from byte arrays

2 participants